package com.ma.gulimall.exception;

/**
 * @ClassName NoStockException
 * @Author: mayongqiang
 * @DATE 2021/11/7 20:50
 * @Description: 无库存异常
 */

public class NoStockException extends RuntimeException {
    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    private Long skuId;

    public NoStockException(Long skuId) {
        super("商品id："+ skuId + "库存不足！");
    }

    public NoStockException(String msg) {
        super(msg);
    }
}
